Separated JS files into server/client folder