Added font.wordWrapString and font.drawTextBox. Improved internal JS exception syntax.