Javascript calculator using jQuery and CSS