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

...=julienw

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>