ordering and minimal js