basic javascript calculator