start to implement script for javascript code generation using escodegen.