Javascript Get Browser Location Variable Resistor