Javascript Get Function Name Within Function In R