sent a ready event when requirejs finishes loading (fixes #1)