Shortens editTable.js.coffee and throws repetitive code into functions
Merge pull request #367 from hmcq6/HM_Collapse_Edit_Table_Code

Shortens editTable.js.coffee and throws repetitive code into functions