removing trailing whitespace in base.coffee