task creation  using javascript