A calculator written in javascript