Correct case of dir when loading json2.js