fixed missing updateMute function

Syntax formatting and JSLint commentation