Cache local variable of Math functions before entering loop
Merge remote-tracking branch 'origin/master'

* origin/master:
Add a len var for idChars.length
Merge pull request #26 from adamrights/master

Fix to for loop Math cache