Walk prototype definitions to find extends.
Use proper keyword.
Added browser based test runner.