A JavaScript string cleaner / sanitizer