Removed global var
Updated inline version.
Ignore closure-compiler
Added build script
Tidied build script.