fixed assets duplicated js problem, fixed target on edit page, fixed firefox specific issue