Refactored mute.js

A template JavaScript now takes arguments in an other order
function (callback, data)
as data is optional