abstracted out hermes.js: base object and hermes events helper object; also added example