Code Cleanup and jQuery

cleaned up some code and started the select order page with jQuery. We
can revert if we decide not to use it.