editing javascirpt