Get a Javascript variable outside the script

If your variable is not in the root of your page, then you have to use this method suggested by patrick

Try typing dmx.app.data.vuFp.value in your browser console, if it comes with undefined, then probably it's nested in your page..