I have done that multiple times, its not updating the new information
After making changes, you need to save the script, then specify when compiling that you need to upload the script to the server, and then check the changes in the compiled script.
I think you could use another thread with the browser to accomplish this. And saving the necessary data to a resource / global variable, then using this data in the new thread, whether with the browser or whatever needs to be done.