move stuff from common.js to scenario.js
remove some obsolete code
fix jshint warnings
no need to patch `scenario1_chart`
move `scenario1` tests to `scenario`
remove obsolete unit test
remove redundant tests from other scenarios
remove old filter implementations
Merge branch 'refactor-jsapp-delete-old-code'