Rename snippet variable

Rename gaSnippet to snippet.
Code formatting update