Moved script to end for proper DOM order.