Styling calculator and refactoring javascript