udpate to the 'optimiser son code js' article