Added compatibility with 2.3.x

Fixes: 
Uncaught TypeError: Property 'addFile' of object [object Object] is not a function