Refactored table.js to make it similar to Requests

Modified the function to utilize a callback in addition to an optional
configuration object.