beautifiy javascript using javascript