Added clear all button

Added button to clear all input and output areas, tweaked JS to be
cleaner/less repetitive. Also added starting height for output field.