Updated formatting in snippets

Use tabs for indentation instead of spaces since it will work for everyone (it will be converted to spaces when you insert the snippet if needed). Function invocations should pass JSHint.