You can also install js-htmlencode by using Bower.