added URL parsing for experiment ID retrieval in JS