update javascript.snippet