Update ui.js

Added default values that should have been there!