parse arguments for table.js first/last functions. Closes #16