You should be getting an error. Make sure that you have Lua errors shown in your Interface Options. Also, install an error catching addons (BugSack is an example) to catch errors that happen early in the loading process.
frame:SetHidden(false) is API from ESO. You'll need to use the frame API provided by WoW.
frame:Hide()
frame:Show()
/edit: you also have a typo on line 34