Optimize snippet end positions
Add a snippet for console.log