adding getProperties function

there are a few attributes that require checking, such as remote-resources, scripted and mathml. Putting them all into one function that returns an array.