Implementing Program Using Javascript Innerhtml