i have added friction, mass, spring constant on this simulation

http://iwant2study.org/ospsg/index.php/interactive-resources/physics/02-newtonian-mechanics/09-oscillations/382-shm08springconstantfrictionforce

enjoy!