Terminated lines with semicolons. Added AMD / CommonJS / Window support.