convert some js