cleaning Javascript