rewrite css with AM, simplify grid, js library wl