Moved "message" listener out of on "load"