migrated changes for this issue into grunt code
updated travis to use grunt