dc-preprocess, note and js variables

* fix bugs
* use dc-preprocess
* add d4p math dependency
* add @class='note' to every note type
* add localization of javascript variables