Calculator based on nodeJS and prototype javascript pattern