use setAttribute
against relative path
正規表現間違えてた