add script for compiling code using Google Closure Compiler and small fixes