I'm putting this comment here because there is no other place to put it...

There is HTML embedded in this file and it needs to be removed. Please copy `Utils.Template` and relevant closure/upvars var from gaia/apps/sms/js/utils.js and move all HTML out of JS and into index.html as it is in gaia/apps/sms/index.html