refactored Json output for prepping table data

1. function in js to create HTML table element for data

2. fixed an edge case of data input: deviceListAjax action
- device with one entry with only ‘,’ at the end. ex. ddd,
added table data on the page

1. tablesorter enabled
2. plm, redimine linked