the double brackets are on purpose: this makes it clear that I didn't want to do a comparison but an assignment here. This is for both human readers and jshint, which triggers a warning otherwise here (and in other places in the sms app as well)