add js to test for text fit in div, move text to footer if too big