JS to add and remove CSS for route status

Added in javascript to add and remove a CSS error class from the route
status display, depending on whether or not the user defined thresholds
has been exceeded.