Code quality improvments part 2

See previous commit. This should bring both index.html and particle.js in sync