Better urls etc. from JS