Responsive squares with Javascript

Click on the colored boxes