Fixed some syntactic inconsistencies

- Now using four spaces for indentation instead of mixed spaces and
tabs.
- Now only using ' ' for strings instead of mixed ' ' and " ".
- Now always having a space after the function keyword and () instead of
mixed.
- Added some missing semicolons.
- Changed all comparison operators from == to ===.