a simple calculator in javascript