Minor cleanup around the JS URL formatting