Pretending to know JavaScript and attempting to make everything at the lowest level sync so the top level can have less sync calls