Optimize and fix SiteApp JS module

Removed superfluous private properties, re-defined the module pattern a bit and tweaked the often-used variables.