Added prereq javascript

Checks to see if prerequisites are met upon add-to-cart