Update sprite.js

Added a check to see if opacity property is supported