better js archive and conditionals