conditional rendering and styling is complete in ERB. now on to JS.