adds formatJs button & function