Add support for json and wscript files