Finalized code

I finalized the JS code and will be adding CSS values at a later time.