Perhaps someone finds this useful.
var head = document.getElementsByTagName('head');
var script = document.createElement('script');
script.src = 'story_content/library.js';
I've used this mechanism to create password strength checker functionality for Storyline.