wraps static svg code in function