Added glob functionality and searching for .js or .json files