Workflow with Javascript controller working