Javascript on search ++