improved `on` method. it can take a DOM event handler. it will set event to DOM if secound argumet is a string.
added a inline event handler.