Update interactive-framework.js

for in loop also checks the objects prototype