JS/HTML: added more complex position object in Player(JS), and make close button close upload dialogue