replace jQuery code by angular code to display pointer coordinates in demo