Fixed typo
Updated for clarity
Moved script tags to the bottom