Parse javascript bool