remove inline javascript, add clear button for file field