added event listeners for edit areas

Note: do 'enter' key for js box