Replace all the occurences of object attached variables to local variables.
Replace all the occurences of object attached variables to local variables.

This caused a problem that the object variables were getting overwritten
when the snippet of code that executed after window load executed. So
made all the object specific objects local variables and used everywhere
inside this object function.

rhyolight/nupic.son,rhyolight/nupic.son,rhyolight/nupic.son