web site project : editor refactoring as a jquery plugin