javascript update for new version