deleted attempts in js and rb