refactor jstable.js