addDeleteAndRailsJsForDeleteLinks