simple js calc to learn js syntax