added Point parameter for JS call