Add semicolons to the end of addInlineJavaScript calls to prevent JS errors in 1.6