Moved the posiotion of the tag <script> to load the libraries