Fixed JavaScript dependencies on first login.