Make sure js added into footer to make sure <body> is available during instantiation.