Split into 3 js files