Youtube api ready func getting called twice fix