minor: removed unused js function