Add JsHint + Refactor repository comparison
Add unit tests (Fix #1)