Simple Javascript library for sending messages to an object and handling them in the object