js mvc for flights