* 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