An implementation of the Construct in Javascript