Sample Javascript code