Add missing jiffy dependency, replace mochijson2 with jiffy in brain API