Explicit comparison operator for length

This yields more performance on some JavaScript engines as it saves one implicit type cast.
Merge pull request #49 from Philzen/patch-1

Explicit comparison operator for length