I coded the following:
showTitles = (typeof showTitles !== \'undefined\') ? showTitles : \'Y\'; showSelectGroup = (typeof showSelectGroup !== \'undefined\')
Note that whether this is best practice in general is debatable, but if you want to make it work with JSLint, you could do this
showTitles = (showTitles !== undefined) ? showTitles : 'Y';