Update script_share.js

replace else { if by else if