base js calculator skeleton