Fix for issue #1361

Fixed rendering calls to scripts to automatically update tables. I updated the format for rendering to js for each applicable controller function call. The browser was interpreting the response as html and the javascript code was not being executed. See issue #1361