candleStore.js audit & refactor (ECMA compliance)

No changes to the logic were made in this commit.

Technically the code executed and ran on node.js...
now it passes jshint / jslint and is ECMA compliant.