Update ssid.js

Attempt to use a jQuery event instead of a loop