New output class function - addScriptFile - allows JS to be loaded through js.php.