more fixes of embedded javascript command