now parsing url parameters in js