Just to make it more clear:
rather use JS variable with more unique name, like [widget name]_assetUrl, or you will end up in hard to trace errors when one widget will override its value from other widget... :)