[webui] fix javascript quoting with rails 3.2.8