Update snippets.rb

Enable Ajax and fix click, and other events.