how to create a popcorn js plugin