updating some js on create event