DAM-250: Javascript determines pid from any url