how to make sure document is finished loaded before javascript manipulation
By Claire Osinski at Jul 12 2021