js coercion on property access and method calls on primitive values