There are a few automated tools that will add semi-colons for you ( YUI Compressor etc), however, these are usually considered 'risky' to rely on. A much better approach is to stick your code into http://www.jslint.com/ which will report exactly where semi-colons are missing, just spend some time correcting the semi-colon errors and go from