Python Parse Url Get Query Javascript For Loop