added jasmine tests and updated dir structure