backup some js functions