[WFK2-600] - Update JavaScript design, add comments, add logging statements.
Merge pull request #2 from joshuawilson/WFK-600

WFK2-600 update to JavaScript