Learnt to spell, also changed application.js

Changed "fucntion" to "function", and now use event.target.id instead of
event.target.name, which appears to be actionscript and not javascript.
I'm pretty cool/dumb