minor refactoring in ads coffee script