fix semicolons and indentations

I try to jshint the code and concat with my project, error messages keep popping out. So I add some semicolons to it.