Improved Javascript

Hey dude, I improved your javascript for learn more about js encapsulation and js module pattern.
We can use this code to study Javascript and Rails together, what do you think?

See ya!! 
Danilo.