Added javascript table sorting