Use JQuery UI AutoFocus
Added msg modification