Simpler html working except for class assignments, which cause the script to hang