changed to two pts if correct, fixed bug in js