Javascript prototype Object to can Extends Objects or functions