Might as well have a proper "ready" system

This + https://gist.github.com/vitorio/8749336 = in-page notification when JSMESS is booted.

Add new functions after messloader.js defines JSMESS.ready() like you would with jQuery:

JSMESS.ready(function() { //your code here });