fix bug that causes jquery plugin not to be found