javascript: implemented eqPtr