Add function expressions to JavaScript AST