Reuse property values in heightmap.js to reduce getProperty calls