added support for changing json files rather than js
added support for changing json files rather than js