There are 2 repositories under spatial-hashes topic.
A node.js implementation of a spatial hash
Quadtree implementation (updated for java 8, properly uses generics)