Improved variable names. Added on-ready JS for buttons.