addoing js for tasks tab