Update script.js

You updated all of the message functions to the "showMessage" version when you submitted your pull request to me but left the one in the invalidHandler out.