How to make the dock on the bottom into 2D

In Mavericks if a dock is on the left or right, it is 2D, and if it is on the bottom it is in annoying 3D (where it's hard to see which apps are open).
 
To enable the 2D dock if on the bottom, copy this into terminal:
defaults write com.apple.dock no-glass -boolean TRUE; killall Dock
and press enter.
 
To re-enable 3D just replace TRUE with FALSE. Map