[JS] global vars renamed