Big Fix

Changed IDEs and used JetBrains' "WebStorm". It found many of the errors
I was trying to troubleshoot earlier and got the page working again.
This if the fixed page.