jsdemo simple particle creation in javascript taken from a demo on codepen and tweaked by yours truly