Factored schedule into seperate JS and added it to cart page