Broke out javascript to separate file