Fix comment creation in single lib view

This was again an issue on the single library view, due to different markup. Also replaced the static `#libraryN` with `"##{@commentable.class.to_s.underscore}#{@commentable.id}"`.