Fixed spelling and reworked a sentence

* a enum -> an enum
* Javascript -> JavaScript
* without the need for writing -> without needing to write