Here self = Window and not LiveFyerAuth...So Its getting an undefined error.