Restructure code from #883 a bit
Restructure code from #883 a bit

- Use === instead of == for strict numeric comparisons
- Merge the two return statements to one
- Address some imprecisions in previously added comments

lehni/paper.js,lehni/paper.js,iconexperience/paper.js,iconexperience/paper.js,lehni/paper.js,iconexperience/paper.js