added javascript calculator (no tests yet)