Added quantity buttons everywhere and refactored front JS