Refactored board generation and restructured js files
Fixed paths after restructuring files