new Date(1350054950348)= Fri Oct 12 11:15:50 EDT 2012
You are using the timestamp that returns from the setHours() method.
set the hours,
then read the date string-
Code:
myDate.setHours(myDate.getHours()+priority);
document.getElementById('deadline').value=myDate;