fix addJAvascript