Removing duplicate JS