changed notifications code to jq - prevents crashes if notification element does not exist