add delete function
correct js Y axis