Added AMD Support.
Added support for simple HTML listeners.