Refactored jasmine template