add missing semicolons
"use strict" and style changes