Delete draw marker's javascript and move some javascript to independent
files