Moving functions to prototype because in JavaScript functions are data so it will not create for all the objects now.
Calling parent constructor into child constructor.
Merge pull request #3 from AmitThakkar/master

Moving functions to prototype because in JavaScript functions are data s...