new js for the new widget