moving js back to top to avoid fouc