addressed JSHint optimizations