所有这些插件中的 add_to_serializer 这个代码是什么

Is there also a way to use it from JavaScript? I’m currently looking at `showOpLikes` doesn't work right away, but after clicking back and forth - #6 by pfaffman which was closed.