ant-spam proof of work solution in javascript