Useful Javascript functions for modifying Google Spreadsheets