A calculator coding with javascript modules