Slowly improving the model.
Restored the logic in JavaScript to cover the full sentiment range and include neutral.