remove corner reference in js