javascript flatland updates
working flatland