made sure jquery is being loaded before js