[fix] provide reference of current edited section to js