JS fixes from review.
Merge branch 'feature/issue-35-refactor-widgets-and-rework-client-side' of ssh://github.com/praekelt/diamondash into feature/issue-35-refactor-widgets-and-rework-client-side