How can I prevent the user from opening the same web page more than once using javascript?