global js vars updated