Yet another JavaScript calculator