fix for the types-view

the javascript assumed that any type ends with "Property" and just cut off ```"Property".length``` characters.
this change fixes that