Javascript updates for sort page