CHEF-4130 - name tempfile correctly

When one edits an object via knife, the tempfile winds up with a file extension of .js . If one's using a syntax checker like syntastic, you get jslint validation errors because json is not strictly validatable as js.