HTML5 Reload wasn't working properly