moved js load order