external js file for tasks view