beta js