Sure, put it in.
Putting smilies/text at the current carret doesn't work on all browsers cause this isn't "standard" javascript.
Unfortunatly there is no way to make this work on all browsers. It should be insterted at the end of the textfield if the functions aren't supported.