capture widget .js