Finally (mostly) beautified QuadsKeepr.js

It doesn't have the almost JSDoc style function comments but it's
certainly better.