Changing the way script variables are passed so that we can have multiple buttons on a page still