Bug 843776 - [sms] JavaScript errors when running application