refactored completely

now supports multiple instances and callbacks
added support for autoplaying video