Modified SVG position code to run on window load instead of using timeout