fixing rails ties with js; adding delete links