Javascript closure example
Objects example in Javascript with inheritance