resize player on creation and made resize_js as a new function