.css('opacity', 0) fix

You can't set i.e. opacity to 0 due to `if value` will return false for 0.

Fixed by chaining `if value` to `if typeof value != "undefined"`.