De-jQuery-ified it. No need to have jQuery if it's not necessary.

If you don't want the function on the global window, you can attach it to your own variable by giving the closure a different variable.

Most of your logic is still in there. The reason it's changed up so much is because I changed a little white space. The main changes happen in the first few lines of code and anywhere you referenced jQuery. I tested this with multiple inputs as well. Works great.

Oh, and by the way, on line 12 of your original js file, you misspelled `PSDIV` as `PSDVI` so it wouldn't have worked as expected. I fixed that too :+1: It was fun!