Update curvedText.js

Made minor changes