Fixed JS breakage due to undefined variable, viewPortLeft.