Remove duplidate javascript