Update ui.rb

the temp file gets written as a .js, it should be a .json