Adding AMD wrapper and removing global references

Removed the global references to `window.videojs` replacing it with
a bare reference to the variable

@eleith