Moved formatter into jscript