moved js for fouc fix