Add Jasmine 2.0 tests; move DOM binding in method