Updated prefix to make it compatible with angular 1.3

In angular 1.3 html5Mode is now an object so a boolean check always returns the same result, I have done a check using the provided type function to decide whether to inspect the 'enabled' property on the object (1.3) or just check the boolean (1.2)