Form placeholder text JavaScript: new class names added

I have updated the JavaScript that adds placeholder text to form inputs using the contents of the title attribute. The code is a bit leaner now and includes class names on the form inputs when there is placeholder text present, which allows you to style the inputs differently when there is user input versus placeholder text.

Input Placeholder Text in Dotjay’s Lab