Cleaned up some mixed spaces/tabs & missing trailing semi-colons.

No functional changes (script works great) but just cleaned up a a few missing semicolons and mixed uses of tabs and spaces to satisfy jslint and my own OCD.