jQuery val() not working properly on dynamic