Better popcornjs implementation