fix javascript set issue