It's in the developer options, which adore hidden now.
1. Uncover the developer options by doing this: How to Enable the Hidden Developer Options on Your Samsung Galaxy S4 ? Samsung GS4 softModder
2. Uncheck "Stay Awake"
Now your phone will not stay lit up when it's fully charged.