Rev javascript