extends prototype with a scope function - Issue #5