tweak JSHint, address errors