Add scheduler javascript