A gravity simulator in three.js