Get Parameters From Url Javascript For Loop