cleaned up with JSHint