Loads an external JS file, exexecutes some functions