Switch JS file loading order