javaScript file for loudness sensor