real js to write shocks