just put it it a seperate file and then require('./you-app') when it's ready