Chai integration 

Integration of Chai.js 
Add test running on PhantomJS