Try to use javascript translation or if not possible, at least quote the strings.