(add) Move js load functions into own js file