I found a bug involving the exit gate! To recreate it, simply have at least 3 rubies collected, go to where the door is, and then go back. Refreshing the browser will fix this issue.
Also, the game keeps saying that I have 3 out of the 8 rubies, even though I collected them all?