Minimal, naive, amateur blob detection in JavaScript