add support for old versions of requirejs (older then 2.1.0)