javascript.snippet modified