code snippet is js