switch to JS for Karma config and update README