update for javascript loading