Changes svg load to javascript