Can you share the script on a pastebin or something? Sounds like an excellent solution.
https://gist.github.com/anonymous/223853355d67123fdda8
This assumes that you are somewhat familiar with EC2 and have already set up a keypair and a security group that allows incoming port 22. Just read the instructions at the top and change the settings to fit your needs.
Set your browser to use SOCKS host 127.0.0.1, port 5222 (or whatever you change it to). This allows you to have a browser using the tunnel and everything else using your native connection.
Let me know if you have any questions.