General cleanup, moved script declaration after body content.