code autoformat, prevent user from playing in multiple tabs or browsers