Replication Calculator Jquery