Remove spaces and comments from JavaScript code (available in PHP and JavaScript)