First draft for root js app