various js fixes
various js fixes
respect table sorting in download