[M120 Migration][WRTJS] Fix JS modal popup failure