Small fixes

Using JSHint to debug