new way of compiling js code