some comments in js; remove explicit condition in block
done initial refactoring of index method in FlightsController
refactoring and add sorting
adding human readable date formats
fixes