bug stop

Small oversights that were creating some larger issues.
The if statement wasn't working as I had thought it was, and I was using the wrong jQuery method for one selector (.val() instead of .text()).

Please see pull request #6 for full details of what I really did, thanks!
:beetle: