changed text_amount and points_earn into textbox and update JS