Fix RequireJS loading

When dependencies contain ``.js`` (as with video.js), RequireJS doesn't apply paths configuration to them and just tries to load them relatively. Also, imagesloaded's dependencies have odd paths. This pull request fixes the above and adds a sample requirejs config to the readme.