Changed table var to DataTable to avoid conflicts. Added addRows, addColumns, and getData functions to DataTable prototype. Setup functions to programmatically create the select element and it's button.