Java Script core for accounting system