Bug 843776 - [sms] JavaScript errors when running application (sms.js) r=julienw