CJavaScript: fix range() warning bug on 5.3.5 for win

Warning: range() [function.range]: step exceeds the specified range

Bug resolved in 5.3.6, but 5.3.5 is a common PHP version.