add layer create js; fix bug with clearing overlays