A nice little walk through on how to do inheritance and classes in general with basic javascript.