Fixed documentation on custom messages section. Javascript now valid.