Restore upstream javascript load order