JavaScript Pactict