Fixed case sensitivity problem in Javascript bool validation