Refactor some things

@daviddening and I have been refactoring the Jasmine gem to try to simplify things.