Add jasmine tests and reformat readme file