Switch to using the minified version of bootstrap-maxlength
Fixing minor HTML markup issues

Discovered using IE's F12 dev tools.
Replace for loop with .each()