Working on the javascript to render orders