Edit javascript