convert flip.js => flip.ts, create Flip module, update views