Added Boolean function top js file.