adding beforeEach
moving specs to tests folder; adding qunit and index.html for running tests