moving js code of the console to mineral
arithmetic through eval function implemented