adding working add tasks js and controller