change the return value of the constructor

change the return value of the constructor so the client can have access to the object prototype