Use correct method for jQuery side