Javascript parse bool. by Nathan Sebhastian.