my attempt js file