OCD javascript changes