refactor simpleAdding.js to comply with Jslint