Fix js issues by localizing function
Merge pull request #4 from wallawe/debt_counter

Fix js issues by localizing function