Convert ErmergershScript to JavaScript here for FUN. Here is some documentation for your experimentation!