Move task specific JS into new file.
Update task specific JS to avoid synchronicity problems, i.e. removing
elements before they are displayed