JS snippet update