compact js