js fix for edit page and text position