Javascript code for smilebox