Converted spreadsheet.js into library