rollback and use $.fadeTo inside RESUtils.fadeElementTo

also some refactoring for readability