So I\'ve defined my \'enum\' at the top of my javascript file as so:
var loaderOptions = { \"SHOW\": 0, \"CHANGEPAGE\": 1, \"HIDE\": 2 };
Add a References Directive on top of the JavaScript file
///
MSDN Doc