Add function for dynamic loading of JS, with a callback afterward