remove dulplicate jquery-rails; add advert validations