Construct characters for animation in Javascript.