Split the code into sevral js files