Revert "Remove prototype from extension..."

This reverts commit e8b6221323b433c62d41e9c58e17eea4c3be3e2b.