added JS code for string ex.