Fix bug of not setting the class in the placeholder element

Also added tests to make sure it is now working.
Fix mistake on README for error callback
[#4] Improved specs to cover almost all code branches,
except the canplay event in the video element