Bug 1061215 - [Messages][Refactoring] Improve handling of remaining chars counter. r=schung

As agreed on IRC - we'll try to use chai asserts instead ```assert = require('chai').assert```