moved logic to main.js and into a module
Merge branch 'master' of https://github.com/baminteractive/scour