third attempt at js.