*extended error messages
*removed unused JS
* optimized JS
* ticket #2610