Move randomise button UI code to new JS file