Making a little js simulator thingy