Restructure JS to use HeisenberJS and JSHint