Create Javascript - Widget