Fixed the issues! Should now work flawlessly.

Turns out that jquery stops executing functions after it finds the
element with the id that you specified. If you define an element by a
class however, it executes the function for all selectors with that
class.