video loader js stuff