fixed JS Example mocking code

pertains to #19
Merge branch 'master' of github.com:siq/mesh