extracted formattergst
added formatter.js