Pull request rebecca

Also, a couple issues with this file:

### File structure
- you shouldn't use application.js for your own javascript code.  It generally should only be used to require other javascript files. 

### Scoping
- all these functions have incredible generic names that you are adding to the global scope.  They should be in objects.

### Code style
- You need to have line breaks between functions.  A good rule is no more than 3 lines together without a line break and think of "paragraphs" of code.  It makes your code more readable.
- Be consistent about semi-colons.  I think you should use them, but if you are not, then never use them. Don't switch back and forth.
- Looks like your indentation is full on tabs. It should be 2 spaces instead.  Make sure everyone on the team is using consistent tabbing style.