Correct way to access document height/width
Corrected player registration