fix for ie 8

changed javascript property to work for ie 8