making widget javascript work