Update ui.rb

the temp file gets written as a .js, it should be a .json
Merge branch 'CHEF-4526' into contributions