Factored creation into glitter.js