Explicit comparison operator for length

This yields more performance on some JavaScript engines as it saves one implicit type cast.