added start of javascript code generation