fixed bug with single quoted items being passed as onclick values