Strip whitespace at end of js files