Code style fixes.

- Added 'strict' mode.
- Fixed JSLint error "JSLint: Unexpected 'else' after 'return'."
- Reformatted else statement.
Merge pull request #2 from andkirby/patch-1

Code style fixes.