got js vid api working