Fixed inconsistent tabbing, added "use strict" and missing semi-colons