Island map generator in JavaScript