updated text api and added js support to text properties