Small typo fix in fatal JS error message

An javascript error -> A javascript error
Merge pull request #624 from Rahazan/patch-1

Small typo fix in fatal JS error message