made output content editable so onkeydown fires
moved helper functions
input and output are content editable by default
removed since output is content editable
updated helper functions