* use "lgs" as global object for lgs stuff.
 * also removes confusion with local and global variable "lgsStateData" being equal
 * initializing data with null is unnecessary
Merge pull request #1 from robin-drexler/master

Minor optimization regarding global obj