Whether to use semicolons or not is largely a matter of choice. However, in javascript, unlike many other languages, not using them can lead to unexpected results. For example,
return
{'foo':'bar'};
will, because of javascript's automatic semicolon insertion, return nothing.