JSHint cleanups of demos, fix energy balanced demo

Cleanup of demos of all JSHint problems. Fix container of energy
balanced demo so that it displays properly.