include page views and dom events when using JavaScript API
Merge pull request #2 from jtuulos/master

count activity for JavaScript API based on page views, dom events and custom events