to-do: pass JS variable from GET request