Store `mesh.attributes.normal.values` somewhere and index into that. It can be slow in javascript. Also, same comment as above about the index.