Remove logging
Fix JSHint warnings