Improve JS department table