Minor fixes based on JSLint and documentation output
Minor fixes based on JSLint and documentation output

- added document in declared globals
- renamed base trim to gTrim to avoid duplicate name in scope
- added empty comments to avoid getting parts of source code in
generated documentation (Natural Docs bug)

eric-brechemier/lb_js_scalableApp,eric-brechemier/lb_js_scalableApp,eric-brechemier/lb_js_scalableApp