Added mocha-phantomjs support. Used existential operator to check for null.
Configuring travis to run client side tests.