Move target framerate menu UI code to new JS file