fixed issue #91, ensure '.toLowerCase()' is only used on string values from 'getAttribute'