Code style fixes.

- Added 'strict' mode.
- Fixed JSLint error "JSLint: Unexpected 'else' after 'return'."
- Reformatted else statement.