fix JSON Loader for js and Java