Simplified JS

Simplified my JS