remove console.log, comments and split only on commas