Testing for tabs by including jquery script to switch to appropriate tab