Problem Solving Using Javascript To Change