working on javascript for marker management