moved overlay js back to the top