update some js method