use javascript to handle multiple button submit