Bug 843776 - [sms] JavaScript errors when running application r=julienw