I'm incredibly impressed that you implemented the whole LSTM model in JavaScript [1] as well as Python. This indirectly gave me a lot of implementation insight, so thanks!
[1]: https://github.com/indutny/gradtype/blob/master/src/model.js
[1]: https://github.com/indutny/gradtype/blob/master/src/model.js