this is a widget for javascript