why double js?