- Added 'use strict' as per library standards
- Removed unwanted ';'
- Added ';' on function ends
- Space intent
- holded array length for performance consideration