Main logic

Now it's working.
This is never used. In this Pull Request, `value` is always used. `value` is different from `this.value`.
`this.value` is the property of your Calculator object. `value` is one global variable created automatically by JavaScript
Try to avoid using global variables and try to use your properties `this.value` ;-)