Update text.js
Merge pull request #1772 from asturur/master

Fix angle value. Closes #1251