Fix Jenkins tests

* Exclude phpmailer from jshint
* Fix bad form test

Change-Id: I4d0e0c2d5a46bc1ce85348c90f809d9128037db3