put coords in js area onclicks