Moved JS to view rather than template
Handle when RTI is not available
Updated gauge to make it much much nicer