some jquery and js changes