Define gaugeOutput() function to create a gauge and modularize the JS dependencies.