Added Boolean Function to javascript file.
Added boolean function.