JavaScript version of the Utopian Engine