Remove unnecessary js function due to pandoc's update