smile javaScript