Page doesn't glitch on load anymore

Added javascript to take care of it
Also a few changes to layout