enable some js functions