Test loading Javascript at the end of page