Issue 171 - Front-end code improvement.

This is a pull-request for https://github.com/evanxd/travis-reporter/issues/171.