Update pointtest.js

funtion one