fixed js shell code