Added constructor.js

Basic example of object constructors.