A simple JavaScript calculator