Slight addition on javascript escape function