minor changes on th jquery and js-only versions