A template to create your own JS widgets