Use jquer-jasmine plugin to allow semantically meaningful inspection of DOM elements rather than string matching on HTML in Specs