convert to string.js plugin