Java Program For Binary Search Using Javascript Variables