Try to get JS DOM url more gracely