Converted PHP to straight up JS and HTML - going to clean up the scripts file to make it a little more structured.