Cleaned up some code in contents_workflow.js