added point js for common functionality
moved to lib
some error with my point class...still something to do there