seperated javacript from html, javascript placed in expense.js
resolved