Handle built-in functions when translating to JavaScript