dump as .js