Fix phpcs and jshint errors