add requirejs example with mocha tests. had to add chai as I couldn't get assert to require