raoxunrong, add test for JavascriptGenerator