fixed indenting + error handling

- Fixed indention in js/test/test.de.js
- throw Errors instead of strings.