Made code more readable using some better practices

- Split bulky code into individual methods with descriptive names
- Renamed variables so that it is consistent with other coffeescript
  code (using camelcase instead of underscores)

Signed-off-by: Byron Sanchez <bfs5030@gmail.com>