Add end-to-end tests for jQuery plugin