move levels definition to index.coffee