Resolve issue with came_from support

Reverted to the JS method of reading the query string, as the zope method was not working (came_from is not passed directly to the JS helper request, but needs to be read from the current URL)