warp script into a js file