Dropped support for 'object' prototype in favor of nested function definitions.
Fixed prototype definition inside lambda.