Fixing JavaScript Jasmine tests.