User:Nanamin/chat.js

(function {   var play_welcome_sound = function(chat) {        if(chat.attributes.text.indexOf('Welcome') != -1 && chat.attributes.isInlineAlert) {            var sound_element = $('body').append('  ')            sound_element.volume = 0.5;        }    };    mainRoom.model.chats.bind('afteradd', play_welcome_sound) });