Fixed the "javascript runs before the pages loads conundrum"
Fixed the "javascript runs before the pages loads conundrum"