fix js variable name bug