Move support panel UI code to new JS file