added ability to compile with the google closure compiler