this dom ready simplification should be fine in svg-supporting browsers (IE9+, etc.), and since svg is tested before this part even runs, it can simplify dramatically.