Adjusting the js extraction to work with new jQuery version

Bug 1375515

See bug report for testing instructions

Change-Id: I2eabfb64ad48945036e962695cfa632afea24152
Signed-off-by: Robert Lyon <robertl@catalyst.net.nz>