get closer to hot module replacement with mocha loader