how to make a four function calculator in javascript