Replace frisbyjs with mocha
Fix some JSLint errors