correct javascript oopsie