Changed messages, now can run on html5