moved script tags to bottom and lined up the code better