fix wrong calculation of "strJsElem"