Minor optimization to reduce the number of method calls in $.objectId.