Self solved this after looking at the MelonJS viewport code. (thanks
for the generous comments and neat code!)
Steps taken:
1. Used "me.game.viewport.setDeadzone(0,0)".
2. If you want the viewport to center at the edges of the map too you
will need to have ample empty spaces added to the tmx file. If not the
viewport will not remain centered on the player at the edges.
P.S.
This thread could be a nice reference for people who wants to do the
same thing. After spending some time googling for viewport and
deadzone, it wasn't apparent that setting the deadzone to 0 would
achieve what I want.