Using Javascript To Add Html Elements And Functions