add regex to grab onclick