creating toolbar elements with pure js..