Set readonly property with javascript by .prop instead of .attr