Enforce TextArea String Length Using JavaScript

I recently had a need to limit the number of characters a user was able to enter into a textarea field on a web form. Unfortunately these elements don't have a maxlength property so this has to be enforced with JavaScript. The function below "monitors" input into the textarea (#description) using a keyUp event handler. When the length reaches the desired limit the user is notified and the string is chopped down to the allowed number of characters. The code below should be pretty straight forward but if you have any questions please feel free to leave them in the comments.