divide public and private js files