updated widget js