add some js function