enclose adjacent XJS elements

resolve error