migrating site structure to nodejs