changed js var name to match what it holds