Added JS functions to handle punishment.