fixed the escaped characters in algorithm javascript