fixed escaped bug on javascript