outsourced main functions to emoticonchooser.js file