javascript: optimize operator calls
javascript: optimize field access