rewritten prezenter.js

I hope that structure of code is much cleaner now