bugfix: short *one* stylesheet due to off by 1 error, when juice'n

- pref: cache's length of array in variable
- uses i++ instead of ++i, helped me when I was hunting the bug.
Merge pull request #1 from andxyz/andxyz-bugfix-getStylesheetList

bugfix: short *one* stylesheet due to off by 1 error, when juice'n