1. change the way video is preloaded/loaded
2. delete some global variables by adding attributes to video class