adding javascript and tasks