Version 2 with jQuery dependency.