Javascript would now detect title and message