implement window.frames
Merge pull request #3186 from wenderen/Window.frames

implement window.frames; r=Manishearth