My Workflow Javascript with Module Pattern