fixed array behavior
fixed some typo
the json stuff is kind of irrelevant because you usually include a json file via require('./config') and not require('./config.json')