externalizeing js