Fixed some issues that prohibited player from working in firefox

still doesn’t work in Safari