Consistent indentation.
Remove redundant loose equality checks against undefined.
Use strict mode.