Factor js out of task.vwf.yaml into task.js