[WIP]Fixed #16193 -- Added qunit to test javascript.

Added qunit tests to test suite. Currently needs more tests to be written. Uses node and grunt to run the test suite from the command line with phantomjs. Uses jshint for linting.

 - [ ] Fix jshint errors.
 - [ ] Add missing tests.