Fix JS anonymous function snippet annoyance