Power Assert in JavaScript