Fixed refresh problem on pc.html by changing some of the javascript