JS code

This is the JS code we will use, just need to make one of those for each
"subjects"