Added a string function to my JS file.