From http://www.w3schools.com/js/js_obj_string.asp