index.html: loading div display none until element sized by js