Forgot to add the <script src...> code on the index.html page to run the script. Added.