Fixed onclick event issue with calculator tutorial