Useful Javascript calculator built for physics homework