made it so you don't need to edit url in javasript file (pulled value of hidden input from html)