Fiddling with javascript tasks