onclick generation quoting error

commented out the onclicks for now, quoting was broken