Update escodegen and fix code accordingly