Added javascript style checking and enforce with Travis

Javascript style checking is now done with jscs and jshint. All commits/PRs triggers Travis to run these checks to enforce a consistent code style.