changes script in jade to be js