EditTrack.js: separation of concerns b/w model and controller layer - 2

Signed-off-by: Anurag Priyam <anurag08priyam@gmail.com>