Add some js function.