update file mode
update javascript error