Improve win.top handling

Per issue 8
https://github.com/pipwerks/scorm-api-wrapper/issues/8
Hat tip to jheinstein