Split app js file to several components