epedev-340 fix javascript error and file storage upload

fix javascript to do lower case string comparison, and fix form upload
to clear node cache after file move function