Made some changes to js. Changed amount to qty (quantity).