Add gitattributes and gitignore

Oops, these should have been added a long time ago.
Switch events to .on()

.bind() is deprecated, and I like .on() more than the .click()
shorthand.