Issue with embedded apostrophe in the final HTML surrounding the onclick function call.