Change javascript and add handler post