- fixed karma unit test error missing js file

In the karma configuration file the public/js/plugins folder was not included
with the right pattern.
- removed obsolete java script files after refactoring