improved orders.js

when reloading pages in some browsers forms will retain their contents
which is now taken account of
removed registerEvents()