Fixes JSHint test problems