Fix the choice of template when "No filter" is selected as :filter_account_id select list.

When "No filter" is selected, params[:filter_...] is ""
so it should not use blank?/present? in the condition
Fix some javascript which don't work on jquery 1.9