Add tests for ui.js and fix a minor bug with numbersOnly
Move global functions in ui.js into a new UI module