fix unused variable and input jquery