update komponist.js
ready for merge
some refactoring