working js calculator