changed how js loads