Get url parameters by name (javascript)