move eventview definition to eventview.js (rename schema.js)