Update fdw.js

upHandler: reset edge styles
Update fdw.js

fix : reset edge styles on keyup
Update fdw.js
Added closures, better structured oobish code