renamed js frontend function to avoid new reserved function name