Adding some jasmine tests and converter.js