print debug info in ajax
simplify links coordinate
api of drawline