Well it is stillconfusing for a newbie in js like myself.
I tried to replace the (part of the code) with your example , and didn't work at all..
you need to give me more specifics...