use unicodetools for representations in JS
remove double defines from JS
fix JS errors and introduce JSHint profile