Non working version using mocha on client side