added javascript testing section with sinon