js widget sample