switch to jQuery for getButtonInfo function