Add functional test lib files to jshint task.

And fix the few errors.

r? @magsout