Made code compatible with Closure Compiler

https://developers.google.com/closure/compiler/