Added compatibility with 2.3.x

Fixes: 
Uncaught TypeError: Property 'addFile' of object [object Object] is not a function
Merge pull request #12 from tamtamchik/master

Added compatibility with 2.3.x