Add jasmine and fix bug with no viewport