Fixed bugs and made requirejs work with Google Spreadsheets