updated the app to MOVE pattern js