changed formatting to jQuery style