javascript: semicolon was not being generated for Function ID constants