Added usage to mkjshtml, refactored/reformatted