I just created another simulation and I hope it is what you wanted!
The elevator is at rest initially. You can drag the slider to change it's acceleration.
The effected mass is shown and the length of the spring changed (according to the effective mass).

VIEW or DOWNLOAD ejs xml source
then click to translate strings for selected locale.

Press the Alt key and the left mouse button to drag the applet off the browser and onto the desktop.