pieces.js is a small modular library (7KB) that spawn emitters and other goodness.