Made it even less work for the user

Changed it so that avenue is immediately replaced with the popup window and then the rest of the code does its work.

-Only tested on chrome
Merge pull request #1 from JemarJones/patch-1

Made it even less work for the user