Javascript at the end to not hold up rendering